package com.lz.yz.member.model;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class RequestUser {

    @NotNull(message = "请输入验证码")
    private String validCode;

    @NotNull(message = "请输入手机号")
    @Pattern(regexp = "^[1][3,4,5,7,8][0-9]{9}$",message = "手机号格式不正确")
    private String phone;

    @NotNull(message = "请输入密码")
    @Length(min= 6,max = 16,message = "请填写正确格式的密码")
    private String password;

    @NotNull(message = "请输入昵称")
    private String nickName;

    private String ip;

    private String token;

    @NotNull(message = "请输入地区")
    private String district;

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getValidCode() {
        return validCode;
    }

    public void setValidCode(String validCode) {
        this.validCode = validCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
